Testing alternative theories of gravity using LISA